package cn.jr.dao;

import cn.jr.pojo.ShopRun;
import cn.jr.util.PageHelper;

import java.util.ArrayList;

@SuppressWarnings("all")
public interface IUserDao {

    //用户注册
    int insertUser(ShopRun shop);

    //通过 主键(userId) 查询
    ShopRun selectUserByUserId(Integer userId);

    //通过 用户名 查询
    ShopRun selectUserByUserName(String username);

    /*//查询总条数
    int selectCountByShopRunAndPageHelper(ShopRun shop);
    //查询当前页面的集合数据
    ArrayList<ShopRun> selectByUser(ShopRun shop, PageHelper ph);
*/
}
